package com.ruoyi.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.business.domain.Member;

import java.util.List;

public interface IMemberService extends IService<Member> {

    /**
     * 查询Member列表
     *
     * @param member Member
     * @return Member集合
     */
    public List<Member> selectMemberList(Member member);

    public List<Member> selectMemberListByUserId(Long userId);

    /**
     * 获取未激活的会员卡列表
     *
     * @param member Member
     */
    public List<Member> selectMemberListByTypeAndStatus(Member member);

    /**
     * 获取激活的会员卡列表
     *
     * @param member Member
     */
    public List<Member> selectMemberListByTypeAndTime(Member member);

    /**
     * 获取单课会员卡
     *
     * @param member Member
     */
    public List<Member> selectMemberListByTypeAndNumber(Member member);

    public Member selectMemberById(Long id);

    /**
     * 更新Member数据
     *
     * @param member Member
     */

    public int insertMember(Member member);

    /**
     * 更新Member数据
     *
     * @param member Member
     */

    public int updateMember(Member member);

    public int deleteMemberByIds(Long[] ids);
}
